﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Class1renwu:Program
    {
        private string name1;
        private string name2;
        private string name3;

        public string Name1 { get => name1; set => name1 = value; }
        public string Name2 { get => name2; set => name2 = value; }
        public string Name3 { get => name3; set => name3 = value; }

        public Class1renwu(string name1, string name2, string name3)
        {
            this.name1 = name1;
            this.name2 = name2;
            this.name3 = name3;
        }
        public Class1renwu() {
            
        }

        public static void bb2() {
            int[] arr = new int[1];
            for (int i = 0; i < arr.Length; i++)
            {
                Random r = new Random();
                arr[i]=r.Next(1, 4);
                for (int j = 0; j < i; j++)
                {
                    if (arr[i]==arr[j])
                    {
                        arr[i] = r.Next(1, 4);
                    }
                }
                Console.WriteLine(arr[i]);
                if (arr[i] == 3) {
                    Console.WriteLine("布");
                    
                } else if(arr[i] == 2)
                {
                    Console.WriteLine("石头");
                }
                else {
                    Console.WriteLine("剪刀");
                }
            } 
        }
    }
}
